Project ID | FD17E29641C6117580258994003AF3B0 |
Version | 3 |
Class ID | 0F069B1249AD083880258994003F7061 |
Class Type | Base |
Attributes |
%REM
The following code shows how to create a filter for even numbers and use it. The code is very basic with no error handling.
%END REM
Class EvenFilterer as CollectionFilter
Function filter(source as Variant) as Boolean
If (source Mod 2 = 0) Then Return True
End Function
End Class
Dim coll1 as New Collection("INTEGER", Nothing, False, False)
Dim coll2 as Collection
Dim filterer as New EvenFilterer
' Populating collection omitted
Set coll2 = coll1.filter(filterer)
Copyright © HCL America, Inc. 1999, 2023. All Rights Reserved.